GO

/****** Object:  Table [dbo].[ConfigReachPayment4Branch]    Script Date: 12/28/2011 21:21:01 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[ConfigReachPayment4Branch](
	[ConfigReachPayment4BranchId] [bigint] IDENTITY(1,1) NOT NULL,
	[BranchId] [bigint] NOT NULL,
	[YearMonth] [datetime] NOT NULL,
	[ReachPayment] [money] NOT NULL,
	[Note] [nvarchar](255) NOT NULL,
	[TimeStamp] [timestamp] NOT NULL,
	[ClientCode] [nvarchar](255) NULL,
	[SyncCode] [nvarchar](255) NULL,
	[TimeStampCode] [varbinary](8) NULL,
 CONSTRAINT [PK_ConfigReachPayment4Branch] PRIMARY KEY CLUSTERED 
(
	[ConfigReachPayment4BranchId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [dbo].[ConfigReachPayment4Branch]  WITH CHECK ADD  CONSTRAINT [FK_ConfigReachPayment4Branch_Branch] FOREIGN KEY([BranchId])
REFERENCES [dbo].[Branch] ([BranchId])
GO

ALTER TABLE [dbo].[ConfigReachPayment4Branch] CHECK CONSTRAINT [FK_ConfigReachPayment4Branch_Branch]
GO


